<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * goods 表操作方法
 * 
 * @author  : $Author: spike $
 * @date    : $Date: 2014-03-03 15:15:37 +0800 (一, 2014-03-03) $
 * @version : $Id: goods_dao.php 41 2014-03-03 07:15:37Z spike $
 * @rev     : $Revision: 41 $
 * @url     : $HeadURL: http://192.168.0.252/tcfs/code/application/frontend/daos/goods_dao.php $
 */

class Goods_dao extends Base_Goods_dao
{
    public function __construct()
    {
        parent::__construct();
    }

       /**
     * [分组查询多个角色的成员数量]
     * @param  [array]  $role_ids [角色id]
     * @return [array]
     */
    public function update_popular($goods_sn)
    {
        $sql = " UPDATE {$this->table} SET `popular` = `popular` + 1 WHERE `goods_sn` = ? LIMIT 11";
        
        $this->connect('write');
        $result = $this->query($sql, array($goods_sn));
    }
}
/* End of file */